<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Prova</title>
    </h:head>
    <h:body>
        <h:form>
            <h2>Incluir Descrição</h2>
            <h:messages></h:messages>
            <br/>
            <table border="0">
                <tbody>
                    <tr>
                        <td><h:outputLabel value="Código"/> </td>
                        <td>
                            <h:inputText id="codigo" value="#{baseFacede.baseSelecionado.codigo}"
                                         size="8"
                                         maxlength="5"
                                         required="true"
                                         validatorMessage="Campo Código Obrigatório!">
                            </h:inputText>
                        </td>
                    </tr>
                    <tr>
                        <td><h:outputLabel value="Descrição"/> </td>
                        <td>
                            <h:inputText id="descricao" value="#{baseFacede.baseSelecionado.descricao}"
                                         size="8"
                                         maxlength="5"
                                         required="true"
                                         validatorMessage="Campo Descrição Obrigatório!">
                            </h:inputText>
                        </td>
                    </tr>
                </tbody>
                <br/>
            </table>
            <h:commandButton value="Gravar" action="#{baseFacede.incluirBase}"/>
        </h:form>
    </h:body>
</html>

